const app = getApp()
Page({
    data: {
        // tab : [],
        // left : '0',
        // actives : 0,
        list : [],
        icon:[{
          size:'font-40',path:'icon-a-ziyuan83',color:'color-blue'},
          {size:'font-45',path:'icon-iconjsyl',color:'color-start'},
          {size:'font-40',path:'icon-smail',color:'color-purple'},
          {size:'font-40',path:'icon-shimian1',color:'color-start'},
          {size:'font-40',path:'icon-yiyu',color:'color-blue'},
          {size:'font-30',path:'icon-anquanpinggu',color:'color-purple'},
          {size:'font-35',path:'icon-jiaolvceshi',color:'color-blue'},
          {size:'font-35',path:'icon-yalifendan',color:'color-start'}
        ]
    },
    onShareAppMessage: function () {
      return {
        title: '疼痛久治不愈？还有一招',
        imageUrl: 'https://7633-v3-92ah4-1300208657.tcb.qcloud.la/static/share_all.jpg',
      };
    },
    onLoad: function (options) {
      let that = this
      that.xInit()
    },
    xInit: function () {
        let that = this
        wx.cloud.callFunction({
            name: 'scale_manage',
            data: {
                action: "get_scale_list",
                class_number: ''
            }
        }).then(res => {
            let data = res.result
            that.setData({
                list : data
            })
        })
    } ,
    xToDetail: function () {
        wx.navigateTo({
            url: '/subtool/pages/evaluate/my/index',
        })
    },
    xToNext:function(e){
      let id= e.currentTarget.dataset.id
      wx.navigateTo({
        url: '/subtool/pages/evaluate/eva-tip/index?id='+id,
      })
    },
    xToResearch:function(e){
      wx.navigateTo({
        url: '/subuser/pages/improveData/index',
      })
    },
})